# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;
from unique import UNIQUE;

class ManagerApplication(RoleApplication):
    """ The Manager User Interface """

    def __init__(self):
        super(ManagerApplication, self).__init__("CallCenter"+UNIQUE, "Manager");
        self.register_transition_step("ProvideSuperAnswer", self.write_super_answer, name_fields=["sequence", "Question"]);
    
    def write_super_answer(self, stepname, form):
        print "manager: write_super_answer"
        form.add_task_label(fields=["Answer"]);
        form.add_field(Type.LONGSTRING, "Answer");
        
if __name__ == '__main__':
    app = ManagerApplication();
    app.MainLoop();